package com.intelligent.ispc.core.repository.jpa;

import com.intelligent.ispc.core.entity.Fixture;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

/**
 * Created by Peter on 15/11/16.
 */
public interface FixtureDao extends PagingAndSortingRepository<Fixture, Long>, JpaSpecificationExecutor<Fixture> {

    Fixture findByCode(String code);

    Fixture findBySerialNumber(String sn);
}
